#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	float M, N, up, sum = 0;
	cin >> M >> N;
	up = M * 0.5;
	sum = M;
	for (int i = 1; i < N; i++)
	{
		sum += up * 2;
		up *= 0.5;	
	}
	printf("%.2f %.2f\n", up, sum);
	return 0;
}